package com.zheng.api.server.service.channel.pay.wechat;

import com.zheng.common.util.PropertiesFileUtil;
import org.springframework.stereotype.Service;

import java.io.File;

/**
 * User: rizenguo
 * Date: 2014/10/29
 * Time: 14:40
 * 这里放置各种配置数据
 */
@Service
public class WxPayProperties  {

	private String certRootPath = new File(WxPayProperties.class.getResource("/").getPath() + File.separator + "cert").toString();//PropertiesFileUtil.getInstance("config").get("pay.wx.certRootPath");

	private String notifyUrl = PropertiesFileUtil.getInstance("config").get("pay.paycenter.baseUrl") + PropertiesFileUtil.getInstance("config").get("pay.wx.notifyUrl");

	public String getCertRootPath() {
		return certRootPath;
	}

	public void setCertRootPath(String certRootPath) {
		this.certRootPath = certRootPath;
	}

	public String getNotifyUrl() {
		return notifyUrl;
	}

	public void setNotifyUrl(String notifyUrl) {
		this.notifyUrl = notifyUrl;
	}
}

